exports.add=[{
	_type:"controller",
	_config_details: {
		
	},
	_config: {
		name: "ContentBoxes",
		index_view:"",
		index_views:["slider","boxes"],
		group_code:"",
		preview:"6",
		offset:0,
		limit:3
	},
	/**
	 * Controller: ContentBoxes.index
	 *
	 * Returns:
	 *		HTML
	 */
	index: function(config) {
		this.configContentBoxes=config;
		var group=this.site.models.ContentBoxGroup.List("get_by_code",{code:config.group_code})[0];
		this.content_boxes=this.site.models.ContentBox.List("list_of_group_enabled",{group_id:group.id,limit:config.limit,offset:config.offset});
		return this.Cview();
	}
}];

